<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
</head>
<body>
<h1>用户登录</h1>
<form th:action="@{/user/login}" method="post">
    用户名：<input type="text" name="username"><br/>
    密码：<input type="text" name="password"><br/>
    请输入验证码：<input type="text" name="code"><img th:src="@{/user/getImage}" alt=""><br/>
    <input type="submit" value="登录">
</form>
<a th:href="@{/user/registerview}">立即注册</a>
</body>
</html>